package baseClass;

import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.os.Debug;
import android.util.Log;

public class Logo
{
  public int fadeout_num;
  public Bitmap img_black;
  public Bitmap img_logo;
  public boolean isCompleteLoad = false;
  public boolean isDrawLogo = false;
  public boolean isLoadFile = false;
  public Paint paint;
  
  public Logo(Context paramContext, int paramInt1, int paramInt2)
  {
    this.img_logo = BitmapFactory.decodeResource(paramContext.getResources(), paramInt1);
    this.img_black = BitmapFactory.decodeResource(paramContext.getResources(), paramInt2);
    paramInt1 = Global.GetInstance().getScreenWidth();
    paramInt2 = Global.GetInstance().getScreenHeight();
    this.img_logo = Bitmap.createScaledBitmap(this.img_logo, Math.round(paramInt1 * Global.GetInstance().dnst_w), Math.round(paramInt2 * Global.GetInstance().dnst_h), true);
    this.img_black = Bitmap.createScaledBitmap(this.img_black, Math.round(paramInt1 * Global.GetInstance().dnst_w), Math.round(paramInt2 * Global.GetInstance().dnst_h), true);
    this.paint = new Paint();
    this.fadeout_num = -100;
    Log.v("test", "-======================Logo Setting Finish======================-");
    Log.v("test", "-======================    Game Start     ======================-");
    Log.v("test", "-= Heap Size Debugger =-");
    Log.v("test", "NativeHeapSize : " + Debug.getNativeHeapSize());
    Log.v("test", "NativeHeapFree : " + Debug.getNativeHeapFreeSize());
    Log.v("test", "NativeHeapAllo : " + Debug.getNativeHeapAllocatedSize());
  }
  
  public void DrawLogo(Canvas paramCanvas)
  {
    paramCanvas.drawBitmap(this.img_logo, 0.0F, 0.0F, null);
    this.isDrawLogo = true;
  }
  
  public void RecycleLogo()
  {
    this.img_logo.recycle();
    this.img_black.recycle();
  }
  
  public void fadeout_logo(Canvas paramCanvas)
  {
    paramCanvas.drawBitmap(this.img_logo, 0.0F, 0.0F, null);
    if (this.fadeout_num >= 255)
    {
      paramCanvas.drawBitmap(this.img_black, 0.0F, 0.0F, null);
      this.isCompleteLoad = true;
    }
    for (;;)
    {
      this.fadeout_num += 4;
      return;
      if (this.fadeout_num >= 0)
      {
        this.paint.setAlpha(this.fadeout_num);
        paramCanvas.drawBitmap(this.img_black, 0.0F, 0.0F, this.paint);
      }
    }
  }
}


/* Location:           D:\Tool\AndroidKiller_v1.3.1\projects\petdesigner\ProjectSrc\classes-dex2jar.jar
 * Qualified Name:     baseClass.Logo
 * JD-Core Version:    0.7.0.1
 */